home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 May / SGI IRIX 6.5 Complementary Applications 2004 May.iso / dist / extras / netscape_lite.idb / usr / bin / X11 / netscape.z / netscape
Encoding:
Text File  |  2003-09-30  |  2.1 KB  |  69 lines

  1. #!/bin/sh
  2. #Tag 0x1064E
  3. #########################################################################
  4. #                                    #
  5. #    NETSCAPE startup utility                    #
  6. #    Copyright (c) 1997 by Netscape Communications Corporation    #
  7. #    Copyright (c) 1998-1999 by Silicon Graphics, Inc         #
  8. #                                    #
  9. #    File name:    netscape                    #
  10. #                                    #
  11. #    Version:    1.1                        #
  12. #                                    #
  13. #    Description:    This script starts up Communicator software    #
  14. #            on an SGI workstation.                 #
  15. #                                    #
  16. #    Usage:        To execute the script, type:            #
  17. #                                    #
  18. #                ./netscape [ args ]            #
  19. #                                    #
  20. #    Exit codes:    0    Successful completion            #
  21. #                                    #
  22. #    Author(s):    Brian Ostrom (briano@netscape.com)        #
  23. #            Victor Riley (var@sgi.com)            #
  24. #                                    #
  25. #    Notes:        * MOZILLA_HOME is /var/netscape/communicator    #
  26. #                                    #
  27. #########################################################################
  28. #
  29. PRODUCT="Communicator"
  30. MOZILLA_HOME=/var/netscape/communicator
  31. PATH=${MOZILLA_HOME}:${PATH}
  32. NPX_PLUGIN_PATH=${MOZILLA_HOME}/plugins32:${HOME}/.netscape/plugins32
  33. # to restore the new SGI font animation
  34. # change anim_cube.dat to animation.dat on the SGI_ANIM line
  35. #SGI_ANIM="${SGI_ANIM:-"${MOZILLA_HOME}/animation.dat"}"
  36. SGI_ANIM="${SGI_ANIM:-"${MOZILLA_HOME}/anim_cube.dat"}"
  37. export MOZILLA_HOME PATH SGI_ANIM NPX_PLUGIN_PATH
  38.  
  39. #
  40. # Is this a first time startup?  If so, create the .netscape dir
  41. # and put the default bookmark file in it.
  42. #
  43. if test ! -d ${HOME}/.netscape
  44. then
  45.     # New install, or upgrade from 0.x or 1.x.
  46.     mkdir ${HOME}/.netscape
  47.     if test -f ${MOZILLA_HOME}/bookmark.htm
  48.     then 
  49.         cp ${MOZILLA_HOME}/bookmark.htm ${HOME}/.netscape/bookmarks.html
  50.         chmod 644 ${HOME}/.netscape/bookmarks.html
  51.     fi
  52. fi
  53. #rm -f ${HOME}/.netscape/plugin-list
  54.  
  55. #
  56. # Redirection of stdin, stdout, and stderr is needed to work around a
  57. # problem with netscape hanging if they weren't attached to something.
  58. # A side-effect is that we can't then capture the output, so don't do
  59. # redirection if the args include -version or -help.
  60. #
  61. args="$@"
  62. if test `expr " $args " : '.* -*-version .*$'` -gt 0 \
  63.     || test `expr " $args " : '.* -*-help .*$'` -gt 0
  64. then
  65.     netscape "$@"
  66. else
  67.     netscape "$@" 0>/dev/null 1>&0 2>&0
  68. fi
  69.